﻿@using HopNguyenModel
@{
    var typeContent = new TypeContent();
    var content = new Content();
    var intro = new PageDetail().GetById(2);
    var baogia = new PageDetail().GetByAlias("bao-gia");
}
<div id="">
    <div id="primary">
        <div class="box-big">
            <div class="box-big-top">
                <h3>@intro.Name</h3>
            </div>
            <div class="box-big-bg">
                <div class="text-box-big" style="max-height: 136px; overflow: hidden;line-height: 22px;">
                    @Html.Raw(intro.Detail)
                </div>
                <p class="text-right" style="padding: 10px; font-style: italic">
                    <a href="/gioi-thieu.html">Xem tiếp</a>
                </p>
            </div>
        </div>
        <div class="box-big">
            <div class="box-big-top">
                <h1>Báo giá dịch thuật</h1>
            </div>
            <div class="box-big-bg">
                <div class="text-box-big" style="max-height: 720px; overflow: hidden;line-height: 22px;">
                    @Html.Raw(baogia.Detail)
                </div>
                <p class="text-right" style="padding: 10px; font-style: italic">
                    <a href="/bao-gia.html">Xem tiếp</a>
                </p>
            </div>
        </div>
            <div class="box-big">
            <div class="box-big-top">
                <h3 style="color: #cc1a20">Tin tức sự kiện</h3>
            </div>
            <div class="box-big-bg"  >
                <div class="text-box-big">
                    @foreach(var item in content.GetByTypeId(26).OrderBy(a => a.Id).Take(4))
                    {
                        <div class="news-item">
                            <div class="img-news">
                                <a href="/@item.TypeContent.Alias/@(item.Alias).html" title="@item.Name">
                                    <img src="@(!string.IsNullOrEmpty(item.Image) ? item.Image : "/frontend/img/no-image.gif")" alt="@item.Name" />
                                </a>
                            </div>
                            <div class="intro-news">
                                <h3 class="title-intro-news">
                                    <a href="/@item.TypeContent.Alias/@(item.Alias).html" title="@item.Name">@item.Name</a>
                                </h3>
                                @item.Summary
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
      @*  <div class="box-big">
            <div class="box-big-top">
                <h3 style="color: #cc1a20">Khách hàng</h3>
            </div>
            <div class="box-big-bg">
                <div class="project-bg">
                    @foreach(var item in content.GetByTypeId(48).OrderByDescending(a => a.Id).Take(3))
                    {
                        <div class="project-item">
                            <img src="@item.Image" alt="@item.Name"/>
                            <h3 class="project-title">
                                <a href="@item.Url">@item.Name</a>
                            </h3>
                        </div>
                    }
                </div>
            </div>
        </div>*@

     @*   <div class="box-big">
            <div class="box-big-top">
                <h3>Sản phẩm</h3>
            </div>
            <div class="box-big-bg">
                <div class="product-bg">
                    @foreach(var item in content.GetAll(1).OrderByDescending(a => a.Id).Take(6))
                    {
                        <div class="product-item">
                            <img src="@item.Image" alt="@item.Name" class="img-product"/>
                            <h3 class="product-name">
                                <a href="@item.Url">@item.Name</a>
                            </h3>
                        </div>
                    }
                </div>
            </div>
        </div>*@

    
    </div>

    <div id="col-right">
        @Html.Partial("Patial/Layout/_SideBarLeft")
    </div>
</div>

